//
//  DetailLikedHeaderCollectionViewCell.m
//  TestApplication
//
//  Created by Hanlingyu on 16/9/8.
//  Copyright © 2016年 ltq. All rights reserved.
//

#import "DetailLikedHeaderCollectionViewCell.h"
#import "HomeChannelDetailLikeusers.h"
#import "UIImageView+WebCache.h"
#import "ChannelPostRanklist.h"

@interface DetailLikedHeaderCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *headerImageView;
@property (weak, nonatomic) IBOutlet UIImageView *vipImageView;

@end

@implementation DetailLikedHeaderCollectionViewCell

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super initWithCoder:aDecoder];
    if (self) {
        
        
    }
    return self;
}


- (void)setLikeuser:(HomeChannelDetailLikeusers *)likeuser {
    _likeuser = likeuser;
    [_headerImageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://qn.zheli.io/%@", _likeuser.avatar]]];
    if (_likeuser.isTalent == 1) {
        _vipImageView.hidden = NO;
    } else {
        _vipImageView.hidden = YES;
    }
}


- (void)setLikeAvter:(ChannelPostRanklist *)likeAvter {
    _likeAvter = likeAvter;
    [_headerImageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://qn.zheli.io/%@", _likeAvter.avatar]]];
    if (_likeAvter.isTalent == 1) {
        _vipImageView.hidden = NO;
    } else {
        _vipImageView.hidden = YES;
    }
}

- (void)awakeFromNib {
    // Initialization code
}

@end
